home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / dislocate.1 < prev    next >
Text File  |  1995-07-25  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4.      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((7777 OOOOccccttttoooobbbbeeeerrrr 1111999999993333))))      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           Dislocate - disconnect and reconnect processes
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ddddiiiissssllllooooccccaaaatttteeee [ _p_r_o_g_r_a_m _a_r_g_s... ]
  13.  
  14.      IIIINNNNTTTTRRRROOOODDDDUUUUCCCCTTTTIIIIOOOONNNN
  15.           DDDDiiiissssllllooooccccaaaatttteeee allows processes to be disconnected and
  16.           reconnected to the terminal.  Possible uses:
  17.  
  18.                o+   You can disconnect a process from a terminal at
  19.                    work and reconnect from home, to continue working.
  20.  
  21.                o+   After having your line be dropped due to noise, you
  22.                    can get back to your process without having to
  23.                    restart it from scratch.
  24.  
  25.                o+   If you have a problem that you would like to show
  26.                    someone, you can set up the scenario at your own
  27.                    terminal, disconnect, walk down the hall, and
  28.                    reconnect on another terminal.
  29.  
  30.                o+   If you are in the middle of a great game (or
  31.                    whatever) that does not allow you to save, and
  32.                    someone else kicks you off the terminal, you can
  33.                    disconnect, and reconnect later.
  34.  
  35.      UUUUSSSSAAAAGGGGEEEE
  36.           When run with no arguments, DDDDiiiissssllllooooccccaaaatttteeee tells you about your
  37.           disconnected processes and lets you reconnect to one.
  38.           Otherwise, DDDDiiiissssllllooooccccaaaatttteeee runs the named program along with any
  39.           arguments.
  40.  
  41.           By default, ^] is an escape that lets you talk to DDDDiiiissssllllooooccccaaaatttteeee
  42.           itself.  At that point, you can disconnect (by pressing ^D),
  43.           suspend DDDDiiiissssllllooooccccaaaatttteeee (by pressing ^Z).
  44.  
  45.           Any Tcl or Expect command is also acceptable at this point.
  46.           For example, to insert the contents of a the file /etc/motd
  47.           as if you had typed it, say:
  48.  
  49.                send -i $out [exec cat /etc/motd]
  50.  
  51.  
  52.           To send the numbers 1 to 100 in response to the prompt "next
  53.           #", say:
  54.  
  55.                for {set i 0} {$i<100} {incr i} {
  56.                    expect -i $in "next #"
  57.                    send -i $out "$i"
  58.                }
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/23/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))     UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((7777 OOOOccccttttoooobbbbeeeerrrr 1111999999993333))))      DDDDIIIISSSSLLLLOOOOCCCCAAAATTTTEEEE((((1111))))
  71.  
  72.  
  73.  
  74.           Scripts can also be prepared and sourced in so that you
  75.           don't have to type them on the spot.
  76.  
  77.           DDDDiiiissssllllooooccccaaaatttteeee is actually just a simple EEEExxxxppppeeeecccctttt script.  Feel
  78.           free to make it do what you want it to do or just use EEEExxxxppppeeeecccctttt
  79.           directly, without going through DDDDiiiissssllllooooccccaaaatttteeee.  DDDDiiiissssllllooooccccaaaatttteeee
  80.           understands a few special arguments.  These should appear
  81.           before any program name.  Each should be separated by
  82.           whitespace.  If the arguments themselves takes arguments,
  83.           these should also be separated by whitespace.
  84.  
  85.           The ----eeeessssccccaaaappppeeee flag sets the escape to whatever follows.  The
  86.           default escape is ^].
  87.  
  88.      CCCCAAAAVVVVEEEEAAAATTTTSSSS
  89.           This program was written by the author as an exercise to
  90.           show that communicating with disconnected processes is easy.
  91.           There are many features that could be added, but that is not
  92.           the intent of this program.
  93.  
  94.  
  95.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  96.           TTTTccccllll(3), lllliiiibbbbeeeexxxxppppeeeecccctttt(3)
  97.           "_E_x_p_l_o_r_i_n_g _E_x_p_e_c_t: _A _T_c_l-_B_a_s_e_d _T_o_o_l_k_i_t _f_o_r _A_u_t_o_m_a_t_i_n_g
  98.           _I_n_t_e_r_a_c_t_i_v_e _P_r_o_g_r_a_m_s" by Don Libes, O'Reilly and Associates,
  99.           January 1995.
  100.  
  101.      AAAAUUUUTTTTHHHHOOOORRRR
  102.           Don Libes, National Institute of Standards and Technology
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 7/23/95)
  130.  
  131.  
  132.  
  133.